package com.hunan.yllxy.repostitory.dao.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.hunan.yllxy.repostitory.entity.DakaScoreInfo;
import com.hunan.yllxy.repostitory.mapper.DakaScoreInfoMapper;
import com.hunan.yllxy.repostitory.dao.DakaScoreInfoDao;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 刘华
 * @since 2025-06-20
 */
@Service
public class DakaScoreInfoDaoImpl extends ServiceImpl<DakaScoreInfoMapper, DakaScoreInfo> implements DakaScoreInfoDao {
    @Override
    public List<DakaScoreInfo> findByActivityId(String activityId) {
        LambdaQueryWrapper<DakaScoreInfo> query = Wrappers.lambdaQuery(this.entityClass);
        query.eq(DakaScoreInfo::getActivityId,activityId);
        return baseMapper.selectList(query);
    }
}
